/**
 * @description:
 * @author: asd
 * @time: 2022/10/3 15:16
 */
public class Util1 {
    public void append(sds sds1, String str) throws Exception {
        sds1.sdsstrcat(str);
        System.out.println(sds1.getLen());
    }
    public void append(sds sds1, sds sds2) throws Exception {
        sds1.sdscatsds(sds2);
        System.out.println(sds1.getLen());
    }

    public String get(sds sds1) {
        return new String( sds1.getBuf());
    }

    public sds put(String str) throws Exception {
        return new sds(str);
    }

    public int strlen(sds sds1) {
        return sds1.getLen();
    }
}
